//
//  PKLTView.m
//  PianKe
//
//  Created by ybq on 15/12/24.
//  Copyright © 2015年 B7_Young. All rights reserved.
//

#import "PKLTView.h"

@implementation PKLTView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatUI];
    }
    return self;
}

- (void)creatUI {
    _label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, 20)];
//    _label.backgroundColor = [UIColor orangeColor];
    _label.font = [UIFont systemFontOfSize:12];
    [self addSubview:_label];
    
    _textField = [[UITextField alloc] initWithFrame:CGRectMake(60, 0, kWidth - 80 - 50, 20)];
//    _textField.backgroundColor = [UIColor orangeColor];
    _textField.font = [UIFont systemFontOfSize:13];
    [self addSubview:_textField];
    
    UIImageView *line = [[UIImageView alloc] initWithFrame:CGRectMake(0, 25, kWidth - 80, .5)];
    line.backgroundColor = [UIColor lightGrayColor];
    [self addSubview:line];
}


@end
